package com.designoutput.vo
{
	public class CardTypeVo
	{
		public var name:String;
		
		public var layerTypes:Vector.<LayerTypeVo> = new Vector.<LayerTypeVo>();
		
		public static function parseFromXML(data:XML):CardTypeVo
		{
			var obj:CardTypeVo = new CardTypeVo();
			
			obj.name = new String(data.@name);
			
			for each (var xml:XML in data.layer)
			{
				var layer:LayerTypeVo = LayerTypeVo.parseFromXML(xml);
				obj.layerTypes.push(layer);
			}
			
			return obj;
		}
	}
}